package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",18,"上海","jsd2302","001");
        /*
        zs.name = "张三";
        zs.age = 18;
        zs.address = "邯郸";
        zs.className = "jsd2302";
        zs.stuId = "001";

         */

        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();



        Teacher ls = new Teacher("李四",30,"北京",800000);
        /*
        ls.salary = 1000000;
        ls.name = "李四";
        ls.age = 25;
        ls.address = "上海";

         */

        ls.teach();
        ls.eat();
        ls.sleep();
        ls.sayHi();




        Doctor ww = new Doctor("王五",35,"杭州","主任");
        /*
        ww.title = "主任";
        ww.name = "王五";
        ww.age = 26;
        ww.address = "北京";

         */

        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();
    }
}
